|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectabstraction.AvailableServices
public class AvailableServices
This Class manages a community, an ArrayList of Avalialble Service
| Field Summary | |
|---|---|
private java.util.ArrayList<Service> |
availableService
|
| Constructor Summary | |
|---|---|
AvailableServices()
|
|
| Method Summary | |
|---|---|
boolean |
addService(Service toAdd)
Method to add a service in Community |
java.lang.Object |
clone()
|
boolean |
containService(Service service)
This method checks if community contains a service |
boolean |
deleteAllCommunity(AvailableServices community)
Method to delete all Community |
void |
deleteService(int index)
Method to delete a service from Community |
Service |
get(int index)
Returns the element at the specified position in this list. |
java.util.Iterator<Service> |
getIterator()
Method gets enumerator on key of hashtable Community |
int |
getPosition(Service toFind)
Method gets position of service |
int |
sizeCommunity()
This method says how many services there are inside a community |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private java.util.ArrayList<Service> availableService
| Constructor Detail |
|---|
public AvailableServices()
| Method Detail |
|---|
public boolean addService(Service toAdd)
toAdd - service to add
public void deleteService(int index)
index - of the service to deletepublic boolean deleteAllCommunity(AvailableServices community)
community - to delete
public int sizeCommunity()
public boolean containService(Service service)
service - to check if it is into community
public Service get(int index)
index - index of the element to return
java.lang.IndexOutOfBoundsExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
clone in class java.lang.Objectpublic java.util.Iterator<Service> getIterator()
public int getPosition(Service toFind)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||